import type { $planet_DataBlocker_poof$ } from "../ALIB/lib.data";

class $planet_Clock_poof$ {
	/** 登录时间 */
	$planet_login_time_poof$: number;
	/** 当前时间 */
	$planet_current_time_poof$: number;
}

const $planet_blocker_poof$: $planet_DataBlocker_poof$<$planet_Clock_poof$> = {
	$planet_get_poof$: {
		$planet_login_time_poof$(proxy, value) {
			return value ?? Date.now();
		},
		$planet_current_time_poof$(proxy, value) {
			return Date.now();
		},
	},
}

export const $planet_data_clock_poof$ = {
	name: '$planet_clock-globak_poof$',
	ins: new $planet_Clock_poof$(),
	blocker: $planet_blocker_poof$,
	save: true
};